//
//  DetailViewController.m
//  09_Work 通讯录
//
//  Created by dllo on 16/7/25.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "DetailViewController.h"
#import "LabelView.h"
#import "AddViewController.h"

@interface DetailViewController ()

@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createLabel];
}

- (void)createLabel {
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIView *detailView = [LabelView createNameLabelFrame:CGRectMake(80, 100, 60, 30) nameLabelText:@"姓名" ageLabelFrame:CGRectMake(80, 150, 60, 30) ageLabelText:@"年龄" sexLabelFrame:CGRectMake(80, 200, 60, 30) sexLabelText:@"性别" phoneLabelFrame:CGRectMake(80, 250, 60, 30) phoneLabelText:@"电话"];
    [self.view addSubview:detailView];
    
    UIView *detailView1 = [LabelView createNameLabelFrame:CGRectMake(160, 100, 100, 30) nameLabelText:self.nameStr ageLabelFrame:CGRectMake(160, 150, 60, 30) ageLabelText:[NSString stringWithFormat:@"%@", self.age] sexLabelFrame:CGRectMake(160, 200, 60, 30) sexLabelText:self.sexStr phoneLabelFrame:CGRectMake(160, 250, 150, 30) phoneLabelText:self.phoneStr];
    [self.view addSubview:detailView1];
    
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
